<template>
<router-view/>
</template>

<script>
import axios from 'axios'
export default {
  name:"app",
  created() {
    if (localStorage.getItem("token")){
      this.$router.push({name:"index"})
    }else {
      this.$router.push({name:"login"})
    }

  }
}
</script>

